<?php
$sql_menu = mysql_query("SELECT id,menu FROM tbl_menu WHERE menu = '".utf8_decode('Links Úteis')."' ORDER BY id ASC ");
list($idmenu,$menu)=mysql_fetch_array($sql_menu);
$sql_links = mysql_query("SELECT link,nome FROM tbl_itens WHERE id_menu = '$idmenu' ORDER BY id DESC ");

?>
<table width="100%" style="background-color:#999;border:2px solid #999;border-radius:12px;" >
<tr>
<td style="text-align:center;background-color:#999;font-family:Tahoma, Geneva, sans-serif;font-size:18px;color:white;"><?php echo $menu; ?></td>
</tr>
<tr>
<td style="text-align:center;border-radius:12px;background-color:#FFF;font-family:Tahoma, Geneva, sans-serif;font-size:18px;color:#666;">
<table width="100%">
<?php 
while(list($link,$item)=mysql_fetch_array($sql_links)){
?>
<tr>
<td style="text-align:center">
<a target="_blank" style="text-decoration:none;color:#666" href="<?php echo $link; ?>"><?php echo $item; ?></a>
</td></tr>
<?php 
}
?>

</table>
</td>
</tr>
<tr><td></td></tr>
</table>


    
